Skip to content

Conversation

jsgf
Copy link
Contributor

@jsgf jsgf commented May 16, 2021

If the command-line has --emit metadata=some/path/libfoo.rmeta then
use that.

Closes #85356

I couldn't find any existing tests for the --emit TYPE=PATH command line syntax, so I wasn't sure how to test this aside from ad-hoc manual testing. Is there a ui test type for "generated output file with expected name"?

@rust-highfive
Copy link
Contributor

r? @estebank

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 16, 2021
@jsgf jsgf force-pushed the fix-emit-metadata branch from 5d0b281 to 0b61496 Compare May 16, 2021 09:10
@jsgf
Copy link
Contributor Author

jsgf commented May 16, 2021

Looks like test failures are spurious.

@jsgf jsgf force-pushed the fix-emit-metadata branch from 0b61496 to 31356e8 Compare May 18, 2021 08:03
@jsgf
Copy link
Contributor Author

jsgf commented May 24, 2021

@estebank ping?

@estebank
Copy link
Contributor

For the tests, you need to write a run-make test, which are involved to write but it's the best option for what you're checking here.

If you need a hand writing a new makefile test, ping me. r=me for the code itself as it is now.

jsgf and others added 2 commits May 28, 2021 22:24
If the command-line has `--emit metadata=some/path/libfoo.rmeta` then
use that.

Closes rust-lang#85356
@jsgf jsgf force-pushed the fix-emit-metadata branch from 31356e8 to b14b7c6 Compare May 29, 2021 05:56
@jsgf
Copy link
Contributor Author

jsgf commented May 29, 2021

@estebank I've added run-make tests.

@estebank
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented May 30, 2021

📌 Commit b14b7c6 has been approved by estebank

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 30, 2021
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request May 30, 2021
Use command line metadata path if provided

If the command-line has `--emit metadata=some/path/libfoo.rmeta` then
use that.

Closes rust-lang#85356

I couldn't find any existing tests for the `--emit TYPE=PATH` command line syntax, so I wasn't sure how to test this aside from ad-hoc manual testing. Is there a ui test type for "generated output file with expected name"?
@bors
Copy link
Collaborator

bors commented May 30, 2021

⌛ Testing commit b14b7c6 with merge 758c00e...

@bors
Copy link
Collaborator

bors commented May 30, 2021

☀️ Test successful - checks-actions
Approved by: estebank
Pushing 758c00e to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 30, 2021
@bors bors merged commit 758c00e into rust-lang:master May 30, 2021
@rustbot rustbot added this to the 1.54.0 milestone May 30, 2021
@jsgf jsgf deleted the fix-emit-metadata branch May 30, 2021 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--emit metadata=some/path/libfoo-abc-123.rmeta doesn't work
5 participants